package cc.comac.mom.api;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import cc.comac.mom.bean.EquipRepair;
import cc.comac.mom.bean.EquipRepairReplacePart;
import cc.comac.mom.util.ResultBean;
import io.swagger.annotations.ApiOperation;

@FeignClient(name = "mom-equipment-mgmt-srv")
public interface EquipRepairReplacePartService {

	@ApiOperation("批量插入备件信息")
	@RequestMapping(value = "/p/cs/EquipRepairReplacePartService/insertBatch",method = RequestMethod.POST)
	public ResultBean insertBatch(@RequestBody List<EquipRepairReplacePart> list);
	@ApiOperation("修改备件信息")
	@RequestMapping(value = "/p/cs/EquipRepairReplacePartService/update",method = RequestMethod.POST)
	public ResultBean update(@RequestBody EquipRepairReplacePart obj) ;
	@ApiOperation("删除备件信息")
	@RequestMapping(value = "/p/cs/EquipRepairReplacePartService/delete",method = RequestMethod.POST)
	public ResultBean delete(@RequestBody EquipRepairReplacePart obj);
	@ApiOperation("获取维修知识库备件信息")
	@RequestMapping(value = "/p/cs/EquipRepairReplacePartService/getPartInfo",method = RequestMethod.POST)
	public ResultBean getPartInfo(@RequestBody EquipRepair obj);
	@ApiOperation("批量删除备件信息")
	@RequestMapping(value = "/p/cs/EquipRepairReplacePartService/deleteBatch",method = RequestMethod.POST)
	public ResultBean deleteBatch(@RequestBody List<Long> ids);

	@ApiOperation("分页查询备件信息")
	@RequestMapping(value = "/p/cs/EquipRepairReplacePartService/selectByCondition",method = RequestMethod.POST)
	public ResultBean selectByCondition(@RequestBody EquipRepairReplacePart obj);
	
	@ApiOperation("需求确认按钮")
	@RequestMapping(value = "/p/cs/EquipRepairReplacePartService/repairReplacePartDemandConfirm",method = RequestMethod.POST)
	public ResultBean repairReplacePartDemandConfirm(@RequestBody List<EquipRepairReplacePart> repairReplacePartList);
	
	@ApiOperation("更换确认按钮")
	@RequestMapping(value = "/p/cs/EquipRepairReplacePartService/repairReplacePartReplaceConfirm",method = RequestMethod.POST)
	public ResultBean repairReplacePartReplaceConfirm(@RequestBody List<EquipRepairReplacePart> repairReplacePartList);

}
